package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IAssetDetailFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.ShopKeepAssetReq;
import com.wgts.wgts.netmodle.resp.WgtsKeepAssetEntity;

import java.util.List;

public class AssetDetailFragmentModel implements IAssetDetailFragmentModel {

    private NetService netService;

    public AssetDetailFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initAsset(ShopKeepAssetReq req, HttpResultSubscriber<List<WgtsKeepAssetEntity>> subscriber) {
        netService.shopKeepAsset(req, subscriber);
    }
}
